package models

import "time"

func Changed(userId int) time.Time {
	row := DB.Table("media_user_settings").Select("change_at").Where("media_user_id=?", userId).Row()
	var changeAt time.Time
	row.Scan(&changeAt)
	return changeAt
}

func UpdateChangeAt(userId int) error {
	return DB.Table("media_user_settings").Where("media_user_id=?", userId).Update("change_at",time.Now()).Error
}

